package com.larsgard.gedviewer.shared.ajax;

import java.io.Serializable;

public class LoadResult implements Serializable {

    private static final long serialVersionUID = -7538081818346814635L;
    private String e;
    private boolean success;
    private int count;
    private boolean finished;

    public void setSuccess(boolean success) {
	this.success = success;
    }

    public boolean isSuccess() {
	return success;
    }

    public void setException(Exception e) {
	this.e = e.getMessage();
    }

    public String getException() {
	return e;
    }

    public void setCount(int count) {
	this.count = count;
    }

    public int getCount() {
	return count;
    }

    public void setFinished(boolean finished) {
	this.finished = finished;
    }

    public boolean isFinished() {
	return finished;
    }

}
